package com.engine4cloud.tdf.supervision.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.engine4cloud.tdf.common.core.constant.enums.BriefAuditActionStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 帮扶申请
 *
 * @author wenjie
 * @date 2024-04-26 14:44:20
 */
@Data
@TableName("sp_help")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "帮扶申请")
public class SpHelpEntity extends Model<SpHelpEntity> {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 矫正人员编号
     */
    @Schema(description = "矫正人员编号")
    private String rybh;

    /**
     * 矫正人员编号
     */
    @Schema(description = "流程编号")
    private String lcbh;

    /**
     * 帮扶申请类型
     */
    @Schema(description = "帮扶申请类型")
    private String bfsqlx;

    /**
     * 帮扶申请理由
     */
    @Schema(description = "帮扶申请理由")
    private String bfsqly;

    /**
     * 帮扶时间
     */
    @Schema(description = "帮扶时间")
    private LocalDateTime bfsj;

    @Schema(description = "帮扶所在省（区、市）")
    private String bfszs;

    @Schema(description = "帮扶所在地（市、州）")
    private String bfszds;

    @Schema(description = "帮扶所在县（市、区）")
    private String bfszxq;

    @Schema(description = "帮扶所在（乡镇、街道）")
    private String bfszd;

    /**
     * 帮扶地点
     */
    @Schema(description = "帮扶地点")
    private String bfdd;

    /**
     * 帮扶内容
     */
    @Schema(description = "帮扶内容")
    private String bfnr;

    /**
     * 记录人
     */
    @Schema(description = "记录人")
    private String jlr;

    /**
     * 记录时间
     */
    @Schema(description = "记录时间")
    private LocalDateTime jlsj;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 审核动作
     */
    @Schema(description = "审核动作")
    private BriefAuditActionStatusEnum preAction;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}